/**
 * 
 */
package de.coe.hendricjabs.friendmap.server.exceptions;

/**
 * @author Hendric
 * 
 */
@SuppressWarnings("serial")
public class SystemException extends RuntimeException {

    public enum ErrorType {
	INVALID_CONVERSATION_FORMAT(101),
	NO_RESPONSE_RECEIVED(102);

	private final int number;

	private ErrorType(int number) {
	    this.number = number;
	}

	public int getNumber() {
	    return number;
	}
    }

    /**
     * @param message
     */
    public SystemException(ErrorType e) {
	super("Es ist ein Fehler aufgetreten! Errorcode:"+e.getNumber());
	// TODO Auto-generated constructor stub
    }

}
